package com.chenfan.mcn.model;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import lombok.Data;

/**
 * <p>
 * 商务提成-回款率&回款系数
 * </p>
 *
 * @author wulg
 * @since 2021-09-16
 */
@Data
@TableName("business_commission_return")
public class BusinessCommissionReturn implements Serializable {

    private static final long serialVersionUID = -7647513223637721674L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 租户id
     */
    @TableField("tenant_id")
    private Long tenantId;

    /**
     * 公司id
     */
    @TableField(value="company_id")
    private Long companyId;

    /**
     * 部门id
     */
    @TableField("department_id")
    private Long departmentId;

    /**
     * 季度编号
     */
    @TableField("quarter_code")
    private String quarterCode;

    /**
     * 取数开始时间
     */
    @TableField("start_time")
    private Date startTime;

    /**
     * 取数截止时间
     */
    @TableField("end_time")
    private Date endTime;

    /**
     * 回款率
     */
    @TableField("return_rate")
    private BigDecimal returnRate;

    /**
     * 回款系数
     */
    @TableField("return_factor")
    private BigDecimal returnFactor;

    /**
     * 汇总合同金额
     */
    @TableField("total_business_amount")
    private BigDecimal totalBusinessAmount;

    /**
     * 汇总回款金额
     */
    @TableField("total_payback_amount")
    private BigDecimal totalPaybackAmount;

    /**
     * 任务触发时间
     */
    @TableField("task_date")
    private Date taskDate;

    /**
     * 创建时间
     */
    @TableField("create_date")
    private Date createDate;

    /**
     * 是否删除（0-正常，1-删除）
     */
    @TableField("is_delete")
    private Boolean isDelete;

}
